<?php
class Data{
	
	private $data = array();
	
	public function setData($name , $val){
		$this->data[$name] = $val;	
	}
	public function getData(){
		return $this->data;
	}
	
	public function dataJsonResponse(){
		return json_encode($this->data);
	}
}